package com.yookey.common.utils;

/**
 * @author huying
 * @since 2019-11-26
 */
public class Constant {

    /**
     * 注册手机验证码前缀
     */
    public static final String VERIFY_CODE_PREFIX = "verifyCode:verifyCode/";

    /**
     * 登陆手机验证码前缀
     */
    public static final String LOGIN_VERIFY_CODE_PREFIX = "verifyCode:login/verifyCode/";


    /**
     * 手机号码验证次数
     */
    public static final String PHONE_COUNT_PREFIX = "sendVerifyCodeCount:phoneNumber/";

    public static final Integer REGISTER_TYPE = 0;

    public static final Integer LOGIN_TYPE = 1;

    public static final Integer LOGIN_PWD = 0;

    public static final Integer LOGIN_VERIFY_CODE = 1;

    /**
     * 验证手机号
     */
    public static final String REGEX_MOBILE = "^1[3456789]\\d{9}$";

    /**
     * 验证电话号码 带区号
     */
    public static final String REGEX_TEL_AREA = "^[0][1-9]{2,3}-[0-9]{5,10}$";

    /**
     * 验证电话号码 不带区号
     */
    public static final String REGEX_TEL = "^[1-9]{1}[0-9]{5,8}$";
}
